package com.mr.userclient.service;

import com.mr.userclient.dao.UserDao;
import com.mr.userclient.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Class: UserService
 * User (作者):MRui
 * TODO (描述)：
 * Date 2018-11-15 23:35
 */
@Service
public class UserService {

    @Autowired
    private UserDao userDao;
    /**
    * User (作者): MRui
    * TODO (描述)：根据openid查找user
    * Data：2018-11-15 23:38
    */
    public User findByOpenid(String openid){
        User user = userDao.findByOpenid(openid);
        return user;
    }
}
